\hypertarget{ls_8c}{
\section{ls.c File Reference}
\label{ls_8c}\index{ls.c@{ls.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$time.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
{\ttfamily \#include $<$limits.h$>$}\par
{\ttfamily \#include $<$dirent.h$>$}\par
{\ttfamily \#include $<$sys/types.h$>$}\par
{\ttfamily \#include $<$sys/stat.h$>$}\par
{\ttfamily \#include $<$pwd.h$>$}\par
{\ttfamily \#include $<$grp.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{ls_8c_ac3ecf39160845191b21f7ab86a60e94d}{ext\_\-ls\_\-default} (char $\ast$dirname)
\begin{DoxyCompactList}\small\item\em list curent directory content (no other info) \item\end{DoxyCompactList}\item 
int \hyperlink{ls_8c_a33c134677820c94fdd7274f4daccec3a}{ext\_\-ls\_\-a} (char $\ast$dirname)
\begin{DoxyCompactList}\small\item\em list curent directory content (with . \item\end{DoxyCompactList}\item 
int \hyperlink{ls_8c_a5e0af4afbe4861dd49550c100d3970b6}{ext\_\-ls\_\-F} (char $\ast$dirname)
\begin{DoxyCompactList}\small\item\em list curent directory content (with formating options) \item\end{DoxyCompactList}\item 
int \hyperlink{ls_8c_a6cb20deb1a033d34ef97cecbb2258a70}{ext\_\-ls\_\-l} (char $\ast$dirname)
\begin{DoxyCompactList}\small\item\em list curent directory content (with access, owner, group and timestamp) \item\end{DoxyCompactList}\item 
int \hyperlink{ls_8c_aeb8374a83d8516f1fd8770e50906086e}{ext\_\-ls\_\-s} (char $\ast$dirname)
\begin{DoxyCompactList}\small\item\em list curent directory content (with size in blocks) \item\end{DoxyCompactList}\item 
void \hyperlink{ls_8c_a48c1ded972f71c8894c1dd14cdfb3f6d}{readrights} (mode\_\-t st\_\-mode)
\begin{DoxyCompactList}\small\item\em parse rights from int to mode \item\end{DoxyCompactList}\item 
int \hyperlink{ls_8c_a0ddf1224851353fc92bfbff6f499fa97}{main} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em command main function \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Patricia Minica, anul 2 Informatica -\/ Engleza 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.0
\end{DoxyVersion}
display directory content 

\subsection{Function Documentation}
\hypertarget{ls_8c_a33c134677820c94fdd7274f4daccec3a}{
\index{ls.c@{ls.c}!ext\_\-ls\_\-a@{ext\_\-ls\_\-a}}
\index{ext\_\-ls\_\-a@{ext\_\-ls\_\-a}!ls.c@{ls.c}}
\subsubsection[{ext\_\-ls\_\-a}]{\setlength{\rightskip}{0pt plus 5cm}int ext\_\-ls\_\-a (char $\ast$ {\em dirname})}}
\label{ls_8c_a33c134677820c94fdd7274f4daccec3a}


list curent directory content (with . 

and ..)


\begin{DoxyParams}{Parameters}
\item[{\em dirname}]-\/ directory to be listed\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_ac3ecf39160845191b21f7ab86a60e94d}{
\index{ls.c@{ls.c}!ext\_\-ls\_\-default@{ext\_\-ls\_\-default}}
\index{ext\_\-ls\_\-default@{ext\_\-ls\_\-default}!ls.c@{ls.c}}
\subsubsection[{ext\_\-ls\_\-default}]{\setlength{\rightskip}{0pt plus 5cm}int ext\_\-ls\_\-default (char $\ast$ {\em dirname})}}
\label{ls_8c_ac3ecf39160845191b21f7ab86a60e94d}


list curent directory content (no other info) 


\begin{DoxyParams}{Parameters}
\item[{\em dirname}]-\/ directory to be listed\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_a5e0af4afbe4861dd49550c100d3970b6}{
\index{ls.c@{ls.c}!ext\_\-ls\_\-F@{ext\_\-ls\_\-F}}
\index{ext\_\-ls\_\-F@{ext\_\-ls\_\-F}!ls.c@{ls.c}}
\subsubsection[{ext\_\-ls\_\-F}]{\setlength{\rightskip}{0pt plus 5cm}int ext\_\-ls\_\-F (char $\ast$ {\em dirname})}}
\label{ls_8c_a5e0af4afbe4861dd49550c100d3970b6}


list curent directory content (with formating options) 


\begin{DoxyParams}{Parameters}
\item[{\em dirname}]-\/ directory to be listed\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_a6cb20deb1a033d34ef97cecbb2258a70}{
\index{ls.c@{ls.c}!ext\_\-ls\_\-l@{ext\_\-ls\_\-l}}
\index{ext\_\-ls\_\-l@{ext\_\-ls\_\-l}!ls.c@{ls.c}}
\subsubsection[{ext\_\-ls\_\-l}]{\setlength{\rightskip}{0pt plus 5cm}int ext\_\-ls\_\-l (char $\ast$ {\em dirname})}}
\label{ls_8c_a6cb20deb1a033d34ef97cecbb2258a70}


list curent directory content (with access, owner, group and timestamp) 


\begin{DoxyParams}{Parameters}
\item[{\em dirname}]-\/ directory to be listed\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_aeb8374a83d8516f1fd8770e50906086e}{
\index{ls.c@{ls.c}!ext\_\-ls\_\-s@{ext\_\-ls\_\-s}}
\index{ext\_\-ls\_\-s@{ext\_\-ls\_\-s}!ls.c@{ls.c}}
\subsubsection[{ext\_\-ls\_\-s}]{\setlength{\rightskip}{0pt plus 5cm}int ext\_\-ls\_\-s (char $\ast$ {\em dirname})}}
\label{ls_8c_aeb8374a83d8516f1fd8770e50906086e}


list curent directory content (with size in blocks) 


\begin{DoxyParams}{Parameters}
\item[{\em dirname}]-\/ directory to be listed\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_a0ddf1224851353fc92bfbff6f499fa97}{
\index{ls.c@{ls.c}!main@{main}}
\index{main@{main}!ls.c@{ls.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$ {\em argv}\mbox{[}$\,$\mbox{]})}}
\label{ls_8c_a0ddf1224851353fc92bfbff6f499fa97}


command main function 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argv}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{ls_8c_a48c1ded972f71c8894c1dd14cdfb3f6d}{
\index{ls.c@{ls.c}!readrights@{readrights}}
\index{readrights@{readrights}!ls.c@{ls.c}}
\subsubsection[{readrights}]{\setlength{\rightskip}{0pt plus 5cm}void readrights (mode\_\-t {\em st\_\-mode})}}
\label{ls_8c_a48c1ded972f71c8894c1dd14cdfb3f6d}


parse rights from int to mode 


\begin{DoxyParams}{Parameters}
\item[{\em st\_\-mode}]-\/ int more to be converted\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
